<%@taglib uri="/struts-tags" prefix="s"  %>

<div class="post" >
<h2 class="title"> <s:property value="user.firstName"/> details</h2>
	<div class="entry">
		<br/>
			<ul>
				<s:if test="user.picture != null">
					<li><IMG alt="" src="/billiardsleague/image/<s:property value="user.picture"/>"/></li>
				</s:if>
				<li>First Name: <s:property value="user.firstName"/></li>
				<li>Last Name: <s:property value="user.lastName"/></li>
				<li>Home Phone: <s:property value="user.homePhone"/></li>
				<li>Work Phone: <s:property value="user.workPhone"/></li>
				<li>Cell Phone: <s:property value="user.cellPhone"/></li>
				<li>Email: <s:property value="user.email"/></li>
				<li>Role: <s:property value="user.role"/></li>
				<li>Handicap: <s:property value="user.handicap"/></li>
				<br/>
				<% if (request.isUserInRole("ADMIN")) { %>
					<s:url id="edit" namespace="/user" action="edit">
						<s:param name="id" value="id"/>
					</s:url>
					<s:a href="%{edit}">Edit</s:a>
				<% } %>
			</ul>
	</div>
</div>